/*
 * @Descripttion: 
 * @version: 
 * @Author: weni09
 * @Date: 2021-04-17 21:54:25
 * @LastEditors: weni09
 * @LastEditTime: 2021-05-16 17:06:55
 * @FilePath: \blogfastapi\frontend_blog\src\store\modules\auth.js
 */

export default {
  state: {
    auth:{},
  },
  mutations: {
    SET_AUTH(state, data) {
      // if (!data) {
      //   data = {}
      // }
      state.auth = data
    },
  },
  actions: {
    set_auth({ commit },data) {
     commit('SET_AUTH',data);
    },
  },
  
  getters:{
    auth: state => state.auth,
  },
}